package edu.mis.model.base;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

/**

 * 商品类别

 * 有3个属性

 * id int

 * categoryName VARCHAR 商品类别名

 * comment VARCHAR 商品类别说明

 */
@SuppressWarnings({"serial", "unchecked"})
public abstract class BaseCategory<M extends BaseCategory<M>> extends Model<M> implements IBean{
	
	public M setId(java.lang.Integer id) {
		set("id", id);
		return (M)this;
	}

	public java.lang.Integer getId() {
		return getInt("id");
	}
	
	public M setCategoryName(java.lang.String categoryName) {
		set("categoryName", categoryName);
		return (M)this;
	}

	public java.lang.String getCategoryName() {
		return getStr("categoryName");
	}
	
	public M setComment(java.lang.String comment) {
		set("comment", comment);
		return (M)this;
	}

	public java.lang.String getComment() {
		return getStr("comment");
	}
}
